import { request } from './request.js';
//获取列表
export const getDictionaryList = (params) => {
  return request({
    url: '/Maintain/SelectDictionary/btn-dicsearch',
    method: 'get',
    params,
  });
};
//新增
export const addDictionary = (data) => {
  return request({
    url: '/Maintain/AddDictionary/btn-dicadd',
    method: 'post',
    data,
  });
};
//修改
export const editDictionary = (data) => {
  return request({
    url: '/Maintain/UpdateDictionary/btn-dicupdate',
    method: 'post',
    data,
  });
};
//删除
export const delDictionary = (params) => {
  return request({
    url: '/Maintain/DeleteDictionary/btn-dicdelete',
    method: 'get',
    params,
  });
};
//批量插入
export const AddDictionaryList = (params) => {
  return request({
    url: '/Maintain/AddDictionaryList/btn-dicload',
    method: 'post',
    data: params,
  });
};
